package com.admin.service.declare.impl;


import com.admin.common.context.DeclareContext;
import com.admin.common.enums.DeclareTypeEnum;
import com.admin.domain.Declare;
import com.admin.service.DeclareService;
import com.admin.service.declare.AbstractDeclareService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * @Author: weiyang
 * @Date: 2022/06/14/10:59
 * @Description: 正常申报
 */
@Service
@Slf4j
public  class NormalDeclareServiceImpl extends AbstractDeclareService {

    @Autowired
    @Lazy
    private DeclareService declareService;

    @Override
    protected Declare saveDeclare(DeclareContext declareContext) {
        return declareService.saveNormalDeclareInfo(declareContext);
    }

    @Override
    public DeclareTypeEnum getType() {
        return DeclareTypeEnum.NORMAL;
    }
}
